package com.yanfan.energy.domain;


import com.yanfan.energy.util.DoubleOperation;
import com.yanfan.energy.util.NumberUtils;

/**
 * @Author huan
 * @Description 能耗统计实体类
 * @ClassName 2023年03月30日 14:22:00
 * @Version 1.0
 **/
public class EnergyConsumption {

    /**
     * 水
     */
    private double waterNumber;

    /**
     * 气
     */
    private double gasNumber;

    /**
     * 尖电
     */
    private double electricityNumber;

    /**
     * 水  价格
     */
    private double waterPriceNumber;
    /**
     * 气  价格
     */
    private double gasPriceNumber;
    /**
     * 电  价格
     */
    private double electricityPriceNumber;

    /**
     * 水
     */
    private String water;

    /**
     * 气
     */
    private String gas;

    /**
     * 尖电
     */
    private String electricity;

    /**
     * 水  价格
     */
    private String waterPrice;
    /**
     * 气  价格
     */
    private String gasPrice;
    /**
     * 电  价格
     */
    private String electricityPrice;


    public double getWaterNumber() {
        return waterNumber;
    }

    public void setWaterNumber(double waterNumber) {
        this.waterNumber = waterNumber;
    }

    public double getGasNumber() {
        return gasNumber;
    }

    public void setGasNumber(double gasNumber) {
        this.gasNumber = gasNumber;
    }

    public double getElectricityNumber() {
        return electricityNumber;
    }

    public void setElectricityNumber(double electricityNumber) {
        this.electricityNumber = electricityNumber;
    }

    public double getWaterPriceNumber() {
        return waterPriceNumber;
    }

    public void setWaterPriceNumber(double waterPriceNumber) {
        this.waterPriceNumber = waterPriceNumber;
    }

    public double getGasPriceNumber() {
        return gasPriceNumber;
    }

    public void setGasPriceNumber(double gasPriceNumber) {
        this.gasPriceNumber = gasPriceNumber;
    }

    public double getElectricityPriceNumber() {
        return electricityPriceNumber;
    }

    public void setElectricityPriceNumber(double electricityPriceNumber) {
        this.electricityPriceNumber = electricityPriceNumber;
    }

    public String getWater() {
        return water;
    }

    public void setWater(String water) {
        this.water = water;
    }

    public String getGas() {
        return gas;
    }

    public void setGas(String gas) {
        this.gas = gas;
    }

    public String getElectricity() {
        return electricity;
    }

    public void setElectricity(String electricity) {
        this.electricity = electricity;
    }

    public String getWaterPrice() {
        return waterPrice;
    }

    public void setWaterPrice(String waterPrice) {
        this.waterPrice = waterPrice;
    }

    public String getGasPrice() {
        return gasPrice;
    }

    public void setGasPrice(String gasPrice) {
        this.gasPrice = gasPrice;
    }

    public String getElectricityPrice() {
        return electricityPrice;
    }

    public void setElectricityPrice(String electricityPrice) {
        this.electricityPrice = electricityPrice;
    }

    public void filter() {
        water = NumberUtils.amountConv(this.waterNumber);
        gas = NumberUtils.amountConv(this.gasNumber);
        electricity = NumberUtils.amountConv(this.electricityNumber);
      /*
        waterPrice =NumberUtils.amountConv(this.waterPriceNumber);
        gasPrice =NumberUtils.amountConv(this.gasPriceNumber);
        electricityPrice =NumberUtils.amountConv(this.electricityNumber);

        */
        waterPrice = DoubleOperation.divideBigDecimal(this.waterPriceNumber, 10000.0);
        gasPrice = DoubleOperation.divideBigDecimal(this.gasPriceNumber, 10000.0);
        electricityPrice = DoubleOperation.divideBigDecimal(this.electricityPriceNumber, 10000.0);
    }
}
